package com.example.player.domain.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;


/**
 * 歌单实体类
 * @author 朱文权
 * */
@Entity(tableName = "play_lists")
public class PlayList {
    @PrimaryKey(autoGenerate = true)
    private Long pid;
    @ColumnInfo(name = "cover_path")
    private String coverPath;
    private String title;
    //该歌单拥有的歌曲数量
    @Ignore
    private Integer count=0;

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getCoverPath() {
        return coverPath;
    }

    public void setCoverPath(String coverPath) {
        this.coverPath = coverPath;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
